package oop_interface01;

public class Frog extends Animal implements Swin{

    public Frog() {
    }

    public Frog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println(getName()+"在吃虫子");
    }

    @Override
    public  void swim(){
        System.out.println("青蛙在蛙泳");
    }
}
